﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace T.FAS.Runtime.Metadata.Entity.Page
{
    /// <summary>
    /// 界面缓存设置
    /// </summary>
    [DataContract]
    [Serializable]
    public class PageTemplate
    {
        /// <summary>
        /// 主键
        /// </summary>
        [DataMember]
        public string ID { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string Creator { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 最后修改人
        /// </summary>
        public string LastModifier { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime LastModifyTime { get; set; }
        /// <summary>
        /// 租户
        /// </summary>
        public string TenantID { get; set; }
        /// <summary>
        /// 模板文件夹
        /// </summary>
        [DataMember]
        public string TemplateGroupID { get; set; }
        /// <summary>
        /// 项目ID
        /// </summary>
        [DataMember]
        public string ProjectID { get; set; }
        /// <summary>
        /// 分支ID
        /// </summary>
        [DataMember]
        public string ProjectBranchId { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserID { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int SortOrder { get; set; }
        /// <summary>
        /// 是否可以一键生成
        /// </summary>
        [DataMember]
        public int CanOneClick { get; set; }
        /// <summary>
        /// 引擎类型
        /// </summary>
        [DataMember]
        public EngineType EngineType { get; set; }
        /// <summary>
        /// 客户端类型
        /// </summary>
        [DataMember]
        public ClientType ClientType { get; set; }
        /// <summary>
        /// 模板类型
        /// </summary>
        [DataMember]
        public TemplateType TemplateType { get; set; }
        /// <summary>
        /// 界面类型
        /// </summary>
        [DataMember]
        public PageType PageType { get; set; }
        /// <summary>
        /// 界面详细类型
        /// </summary>
        [DataMember]
        public PageDetailType PageDetailType { get; set; }
        /// <summary>
        /// 模板编码
        /// </summary>
        [DataMember]
        public string Code { get; set; }
        /// <summary>
        /// 模板名称
        /// </summary>
        [DataMember]
        public string Name { get; set; }
        /// <summary>
        /// 模板图标
        /// </summary>
        [DataMember]
        public string Icon { get; set; }
        /// <summary>
        /// 模板内容
        /// </summary>
        [DataMember]
        public PageMetaData PageMetaData { get; set; }
        /// <summary>
        /// 模板替换定义
        /// </summary>
        [DataMember]
        public List<PageTemplateReplaceDefine> TemplateReplaceDefines { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        /// <summary>
        /// 模板内容
        /// </summary>
        public string Content { get; set; }
    }
}
